#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	float x, y, z,S,aver;
	printf("x=");
	scanf("%f", &x);
	printf("y=");
	scanf("%f", &y);
	printf("z=");
	scanf("%f", &z);
	S = x + y + z;
	aver = (x + y + z) / 3;
	printf("S = %.4f,aver = %.4f\n", S, aver);
	return 0;
}